package org.learn.test;

public class MethodExercise {
    public static void main(String[] args) {

        AA b = new AA();
        b.print(5,15,'#');
        AA a = new AA();
//        if(a.isOdd(13)){
//            System.out.println("是奇数");
//        } else {
//            System.out.println("是偶数");
//        }
    }

}
class AA{
    public boolean isOdd(int num) {
        if(num % 2 != 0){
            return true;
        }
        return false;
    }
    public void print(int row,int col,char c){
        for(int i = 0;i < row;i++){
            for(int j = 0; j < col;j++){
                System.out.print(c);
            }
            System.out.println();
        }
    }

}
